package cc.siyecao.mapper.conditions;

import java.io.Serializable;

/**
 * 分组条件封装
 *
 * @author hubin miemie HCL
 * @since 2017-05-26
 */
@SuppressWarnings("unchecked")
public interface Group<W, R> extends Serializable {

    default W groupBy(R... columns) {
        return groupBy( true, columns );
    }

    /**
     * 分组：GROUP BY 字段, ...
     */
    W groupBy(boolean condition, R... columns);
}
